package cn.wolfcode.rbac.domain;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;

@Data @NoArgsConstructor @AllArgsConstructor
public class CustomerTransfer extends BaseDomain {
    private Long customerId;
    private Long operatorId;
    private String operateTime;
    private Long oldSellerId;
    private Long newSellerId;
    private String reason;
    private String customerName;
    private String oldSellerName;
    private String newSellerName;
    private String operatorName;

    public CustomerTransfer(Long id, Long customerId, Long operatorId, String operateTime, Long oldSellerId, Long newSellerId, String reason, String customerName, String oldSellerName, String newSellerName, String operatorName) {
        super(id);
        this.customerId = customerId;
        this.operatorId = operatorId;
        this.operateTime = operateTime;
        this.oldSellerId = oldSellerId;
        this.newSellerId = newSellerId;
        this.reason = reason;
        this.customerName = customerName;
        this.oldSellerName = oldSellerName;
        this.newSellerName = newSellerName;
        this.operatorName = operatorName;
    }

    @Override
    public String toString() {
        return "CustomerTransfer{" +
                "id=" + id +
                ", customerId=" + customerId +
                ", customerName='" + customerName + '\'' +
                ", operatorId=" + operatorId +
                ", operatorName='" + operatorName + '\'' +
                ", oldSellerId=" + oldSellerId +
                ", oldSellerName='" + oldSellerName + '\'' +
                ", newSellerId=" + newSellerId +
                ", newSellerName='" + newSellerName + '\'' +
                ", operateTime='" + operateTime + '\'' +
                ", reason='" + reason + '\'' +
                '}';
    }
}
